package com.yunfeisoft.business.service.impl;

import com.applet.base.BaseServiceImpl;
import com.applet.sql.builder.WhereBuilder;
import com.yunfeisoft.business.dao.inter.PmsProductLadderDao;
import com.yunfeisoft.business.model.PmsProductLadder;
import com.yunfeisoft.business.service.inter.PmsProductLadderService;
import com.applet.sql.separation.DataSourceChange;
import com.applet.utils.Page;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * ClassName: PmsProductLadderServiceImpl
 * Description: 商品阶梯价格表service实现
 * Author: Jackie liu
 * Date: 2020-06-02
 */
@Service("pmsProductLadderService")
public class PmsProductLadderServiceImpl extends BaseServiceImpl<PmsProductLadder, String, PmsProductLadderDao> implements PmsProductLadderService {

    @Override
    @DataSourceChange(slave = true)
    public Page<PmsProductLadder> queryPage(Map<String, Object> params) {
        return getDao().queryPage(params);
    }

    @Override
    public List<PmsProductLadder> queryByProductId(String productId) {
        return getDao().queryByProductId(productId);
    }
}